package com.wyp168.jvm001.dynamiclinking;

/**
 * @ClassName DynamicLinkingDemo001
 * @Description TODO
 * @Author wyp168
 * @Date 2022/8/4 14:50
 */
public class DynamicLinkingDemo001 {
    private int a = 10;

    public static void main(String[] args) {
        DynamicLinkingDemo001 dynamicLinkingDemo001 = new DynamicLinkingDemo001();
        dynamicLinkingDemo001.methodB();
    }

    public void methodA() {
        System.out.println("methodA() 执行成功...");
    }

    public void methodB() {
        System.out.println("methodB() 执行成功");

        System.out.println("methodB() 调用methodA() 方法");

        methodA();

        System.out.println("methodB() 调用 成员变量a");
    }
}
